package com.example.administrator.capital.mine;
import android.os.Bundle;
import android.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.example.administrator.capital.R;
import com.example.administrator.capital.base.BaseBackFragment;
import com.example.administrator.capital.mine.second.RechargeCountFragment;
/**
 * A simple {@link Fragment} subclass.
 * 充值
 */
public class RechargeFragment extends BaseBackFragment {
    private TextView mBack;
    private View view;
    private TextView recharge;
    public RechargeFragment() {
        // Required empty public constructor
    }
    public static RechargeFragment newInstance() {

        Bundle args = new Bundle();
        RechargeFragment fragment = new RechargeFragment();
        fragment.setArguments(args);
        return fragment;
    }
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        view=inflater.inflate(R.layout.fragment_recharge, container, false);
        return view;
    }
    @Override
    protected void initView(View view) {
        super.initView(view);
        mBack = view.findViewById(R.id.app_title_back);
        recharge=view.findViewById(R.id.tv_recharge);
    }
    @Override
    protected void setListener() {
        super.setListener();
        mBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                _mActivity.onBackPressed();
            }
        });
        recharge.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                start(RechargeCountFragment.newInstance());
            }
        });
    }
    @Override
    protected void setData() {
        super.setData();
    }
}
